/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年7月25日 上午10:48:46
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.utils;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

/**
 * @author Administrator
 *
 */
public class MyBeanUtils {
	public static <T>T populate(Class<T> clz,Map<String,String[]> map) throws InstantiationException, IllegalAccessException, InvocationTargetException{
		T instance = clz.newInstance();
		BeanUtils.populate(instance,map);
		return instance;
	}
}
